package com.maybach.core.ao;

import com.maybach.common.model.OperateLogDO;
import com.maybach.dubbo.api.model.OperateLogModel;
import com.maybach.util.query.support.PageResult;

/**
 * 操作日志原子接口 Created by chris on 16/3/29. e-mail baijun@maihaoche.com
 */
public interface OperateLogAO {

	/**
	 * 添加操作日志
	 *
	 * @param model
	 * @return
	 */
	Long addOperateLog(OperateLogModel model);

	/**
	 * 更新操作日志
	 *
	 * @param model
	 * @return
	 */
	boolean updateOperateLog(OperateLogModel model);

	/**
	 * 查询操作日志
	 *
	 * @param model
	 * @return
	 */
	PageResult<OperateLogDO> queryOperateLog(OperateLogModel model);

}
